﻿using System;

namespace EHSubmit.Logic
{
    /// <summary>
    ///Constants类 集中存放系统常量
    /// </summary>
    public class Constants
    {
        // 登录后User类存在Session中的键值
        public static string SESS_USER_KEY = "EHSUBMIT_SESS_USER_KEY";      


        /// <summary>
        /// 系统角色
        /// </summary>
        public static readonly int ROLE_STUDENT = 2;
        public static readonly int ROLE_TEACHER = 1;
        public static readonly int ROLE_ADMIN = 0;

        /// <summary>
        /// 默认每页记录数
        /// </summary>
        public static readonly int DEFAULT_PAGE_SIZE = 10;

        /// <summary>
        /// 系统提示信息
        /// </summary>
        public static readonly string INFO_NO_ACCESS = "您没有权限执行此操作";
        public static readonly string INFO_IO_ERR = "文件操作错误";
        public static readonly string INFO_PARAM_ERR = "参数错误";

        public static readonly string INFO_NETWORK_ERR = "网络连接错误";
        
        public static readonly string INFO_UNKNOWN_ERR = "未知错误";
        

    }
}